﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using StoreRepositorys;

namespace StoreISet.Controllers
{
    /// <summary>
    /// 数据迁移
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class CreateDataController : ControllerBase
    {
        public readonly MySqlSugarDbcontext _db;
        public CreateDataController(MySqlSugarDbcontext db)
        {
            _db = db;
        }
        [HttpGet]
        public string CreateData()
        {
            _db.CreateTable();
            return "ok";
        }
    }
}
